package com.yuw.hw6;

public class Constractor {

	public static void main(String[] args) {
		test01()  ;

	}
	private static void test01() {
		//创建实例对象张三
		Person perZhangsan =new Person("张三",33,1.66);
		//创建实例对象李四
		Person perLisi =new Person("李四",44,1.70);
		
		//张三向李四打招呼
		System.out.println("张三向李四打招呼");
		perZhangsan.sayHello();
		
		//李四向张三打招呼
		System.out.println("李四向张三打招呼");
		perZhangsan.sayHello();

	}

}
